package com.test.design.example3.builder;

/**
 * @program: design-patternz
 * @description: 定义指挥者
 * @author: <a href="mailto:zhengjiaming@gtmap.cn">zhengjiaming</a>
 * @create: 2024-12-26 14:29
 **/
public class Director {
    private HouseBuilder houseBuilder;

    public Director(HouseBuilder houseBuilder){
        this.houseBuilder = houseBuilder;
    }

    public void constructHouse(){
        houseBuilder.buildWalls();
        houseBuilder.buildRoof();
        houseBuilder.buildFloor();
    }
}
